package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdUserPage;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdUserPageMapper {
    int deleteByPrimaryKey(Integer userPageId);

    int insert(AdUserPage record);

    int insertSelective(AdUserPage record);

    AdUserPage selectByPrimaryKey(Integer userPageId);

    int updateByPrimaryKeySelective(AdUserPage record);

    int updateByPrimaryKeyWithBLOBs(AdUserPage record);

    int updateByPrimaryKey(AdUserPage record);


    List<Map<String, Object>> loadUserRolePages(@Param("userId")Integer userId, @Param("resourceType")Integer resourceType);

    AdUserPage selectByUserIdPageId(@Param("userId") Integer userId, @Param("pageId") Integer pageId);
}